{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "78d30e87-9a19-457f-908f-39b3410d4799",
   "metadata": {},
   "outputs": [],
   "source": [
    "import os\n",
    "\n",
    "import gridfs\n",
    "from pymongo import MongoClient, UpdateOne\n",
    "\n",
    "db_name,collection_name = \"\",\"\"\n",
    "# root:YvKx48fY3urx_2kqhUmpXZ\n",
    "client = client = MongoClient('mongodb://root:YvKx48fY3urx_2kqhUmpXZ@192.168.31.206:27017')\n",
    "db = client[db_name]\n",
    "collection = db[collection_name]\n",
    "fs = gridfs.GridFS(db)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "52694c1d-79c6-4371-84a3-8d335039d994",
   "metadata": {},
   "outputs": [],
   "source": [
    "collection.insert_one(documents,\n",
    "                        bypass_document_validation=bypass_document_validation,\n",
    "                        session=session,\n",
    "                        comment=comment)"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.12.4"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
